package com.mtnz.njk.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @Description: 提问实体类
 * @Author: ZPX
 * @CreateDate: 2019/7/26 12:01
 * @Version: 1.0
 */
@Data
@Table(name = "post")
public class PostEntity {
    //提问id
    @Id
    @Column(name = "ask_id")
    private String askId;
    //专题ID
    @Column(name = "special_id")
    private String specialId;
    //用户名
    private String name;
    //用户ID
    @Column(name = "user_id")
    private String userId;
    //标题
    private String subject;
    //创建时间
    @Column(name = "create_date")
    private String createDate;
    //点击量
    private Integer views;
    //回复数
    private String replies;
    //是否置顶
    @Column(name = "top_status")
    private String topStatus;
    //商品ID
    @Column(name = "product_id")
    private String productId;
    //是否为精华帖
    @Column(name = "cream_status")
    private String creamStatus;
    //0不是每日一读1是
    @Column(name = "daily_status")
    private String dailyStatus;
    //关键字
    private String keyword;
    private String keyword2;
    //浏览
    private String browse;
    //活动ID
    @Column(name = "activity_id")
    private String activityId;
    //H5网页路径
    private String url;
    //是否为活动
    @Column(name = "activity_status")
    private String activityStatus;
    //活动
    private String activity;
    //提问专题类型
    @Column(name = "ask_special_type")
    private String askSpecialType;
    private String sort;
    //数字
    private String number;
    //图片类型
    @Column(name = "img_type")
    private String imgType;
    //分享图
    @Column(name = "share_img")
    private String shareImg;

    //忽略字段
    @Transient
    private AskEntity askEntity;

    @Transient
    private NjkUserEntity  njkUserEntity;

    @Transient
    private ResearchEntity researchEntity;

    @Transient
    private ProductEntity productEntity;

    @Transient
    private String tor;

    @Transient
    private String zan;

}
